<include file="Public/left" />

<script>
$(function(){
	$("tr:even").css('background','#eee')
})
</script>
<div class="title title-product">产品列表</div>
<style type="text/css">
.sbox{background:#CCC; padding:5px;}
.input{border:#FFF solid 1px;}
option{margin:10px; padding:10px;}
</style>
<div class="sbox">
  <form name="form1" method="post" action="<{:U('search')}>">
    <label>
      <select name="catid" id="catid">
        <option value="0">不限分类</option>
        <volist name="cat" id="list">
        <option value="<{$list['id']}>"><{$list['name']}></option>
        </volist>
      </select>
    </label>
    <label>
      <input class="input" type="text" name="k" id="k">
    </label>
    <input type="submit" name="button" id="button" value="搜索">
  </form>
</div>
<table class="table" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="first">
    <td width="30" align="center" valign="middle">ID</td>
    <td>标题</td>
    <td width="100" align="center" valign="middle">所属分类</td>
    <td width="150" align="center" valign="middle">发布时间</td>
    <td width="120" align="center" valign="middle">操作</td>
  </tr>
  <volist name="article" id="list">
  <tr>
    <td width="30" align="center" valign="middle"><{$list['id']}></td>
    <td><{$list['title']}></td>
    <td width="100" align="center" valign="middle"><{:getCatName($list['catid'])}></td>
    <td width="150" align="center" valign="middle"><{:date('Y-m-d H:i:s',$list['time'])}></td>
    <td width="120" align="center" valign="middle"><a class="edit" href="<{:U('edit','id='.$list['id'])}>">修改</a> <a class="del" href="<{:U('delete','id='.$list['id'])}>" onClick="return confirm('确定要删除吗？')">删除</a></td>
  </tr>
  </volist>
</table>


<include file="Public/foot" />